import 'dart:async';
import 'package:flutter/services.dart';

class WalletUtils {
  static const MethodChannel _channel = const MethodChannel('walletUtils');

  static String _methodType = "wallet";

  /// 导入钱包
  ///
  /// mnemonic:借助词
  /// password:密码
  static Future<bool> import(String mnemonic, String password) async {
    return await _channel.invokeMethod<dynamic>('$_methodType.import',
        <String, dynamic>{'mnemonic': mnemonic, 'password': password});
  }
}
